<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>

<body>
<div id="app">
    <el-input v-model="input" placeholder="请输入账号" v-model="account"></el-input>
    <el-input placeholder="请输入密码" v-model="password" show-password></el-input>
    <el-button type="primary" @click="onSubmit">登录</el-button>
    <el-button type="primary" @click="onRegister">注册</el-button>
</div>

<script src="js/vue.js"></script>
<script src="js/axios-0.18.0.js"></script>
<script src="element-ui/lib/index.js"></script>
<link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">
<script>
    new Vue({
        el:'#app',
        data(){
            return{
                account:'',
                password:''
            }
        },
        methods:{
            onSubmit(){
                axios.get("http://localhost:8080/login",{

                })
            },
            onRegister(){
                window.location.href("register.html")
            }
        }
    })
</script>
</body>
</html>